package com.warehouse.mapper;

import com.warehouse.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface OrderDetailMapper {
    
    List<OrderDetail> selectByOrderId(@Param("orderId") Long orderId);
    
    OrderDetail selectById(@Param("id") Long id);
    
    int insert(OrderDetail orderDetail);
    
    int insertBatch(@Param("orderDetails") List<OrderDetail> orderDetails);
    
    int update(OrderDetail orderDetail);
    
    int deleteById(@Param("id") Long id);
    
    int deleteByOrderId(@Param("orderId") Long orderId);
} 